package com.yonyougov.cruxtestcase.testcase.organization.agency.multversion;


import com.yonyougov.cruxtestcase.basecase.BaseCase;
import com.yonyougov.cruxtestcase.dto.BaseResponseDto;
import com.yonyougov.cruxtestcase.dto.BaseTestReqDto;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@RestController
@RequestMapping("/api/agency/multversion/nosensitivequery")
@Valid
public class NoSensitiveQueryCaseController implements BaseCase {
    private final LoginCaseService loginCaseService;

    public NoSensitiveQueryCaseController(LoginCaseService loginCaseService) {
        this.loginCaseService = loginCaseService;
    }

    @Override
    public String getName() {
        return "预算单位多版本不敏感查询";
    }

    @Override
    public String getRemark() {
        return "默认查询返回不敏感的数据";
    }

    @PostMapping("/testcase")
    @Override
    public BaseResponseDto testcase(@RequestBody BaseTestReqDto baseDto) {
        return loginCaseService.testcase(baseDto);
    }


}
